<%@page contentType="text/javascript;charset=GBK" language="java"%>
<%@page import="com.tansuosoft.discoverx.web.JSPContext" %>
<%@page import="com.tansuosoft.discoverx.web.ui.view.ViewRender,com.tansuosoft.discoverx.web.ui.view.ViewForm,com.tansuosoft.discoverx.web.ui.toolbar.ViewOperationProvider,com.tansuosoft.discoverx.web.ui.toolbar.ToolbarRender,com.tansuosoft.discoverx.web.ui.json.JsonRender"%>
<%
JSPContext jspContext=new JSPContext(pageContext);
jspContext.setNoCache();
ViewForm viewForm=new ViewForm();
viewForm.fillWebRequestForm(request);
ViewRender viewRender=new ViewRender(viewForm);
JsonRender toolbarJsonRender=null;
if(viewForm.getShowOperation()){
	ViewOperationProvider operationProvider=new ViewOperationProvider(viewForm.getView());
	ToolbarRender toolbarRender=new ToolbarRender(operationProvider);
	toolbarJsonRender=new JsonRender(toolbarRender,"","");
}
%>
{
data:{<%=viewRender.render(jspContext) %>},
toolbar:<%=toolbarJsonRender==null?"null":toolbarJsonRender.render(jspContext)%>
}